let funcUtil = {
    //控制实现次数函数
    executeWithIntervalAndLimit(count, interval, callback) {
        let currentCount = 0;
        const intervalId = setInterval(() => {
          callback();
          currentCount++;
      
          // 达到执行次数后清除定时器
          if (currentCount === count) {
            clearInterval(intervalId);
          }
        }, interval);
    }
}

export default funcUtil;